import request from '@/utils/request'

// 查询调班记录列表
export function listShiftchange(query) {
  return request({
    url: '/system/shiftchange/list',
    method: 'get',
    params: query
  })
}

// 查询调班记录详细
export function getShiftchange(id) {
  return request({
    url: '/system/shiftchange/' + id,
    method: 'get'
  })
}

// 新增调班记录
export function addShiftchange(data) {
  return request({
    url: '/system/shiftchange',
    method: 'post',
    data: data
  })
}

// 修改调班记录
export function updateShiftchange(data) {
  return request({
    url: '/system/shiftchange',
    method: 'put',
    data: data
  })
}

// 删除调班记录
export function delShiftchange(id) {
  return request({
    url: '/system/shiftchange/' + id,
    method: 'delete'
  })
}
